﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace Minestorm.Evolved.Assets
{
    public class PlanetEffect : CustomEffect
    {
        public enum Technique
        {
            PlanetSurface,
            Clouds,
            Glow
        }

        public Texture2D Texture { get { return GetTexture2D("Texture"); } set { Set("Texture", value); } }
        public Texture2D BumpSpecTexture { get { return GetTexture2D("BumpSpecTexture"); } set { Set("BumpSpecTexture", value); } }

        public Vector3 CameraPosition { get { return GetVector3("CameraPosition"); } set { Set("CameraPosition", value); } }

        public Color Color { get { return GetColor("Color"); } set { Set("Color", value); } }

        public void SetTechnique(Technique technique)
        {
            SetTechnique(technique.ToString());
        }

        public static implicit operator PlanetEffect(Effect effect)
        {
            return CastTo<PlanetEffect>(effect, Effects.Planet);
        }
    }
}
